{% extends 'base-message.html' %}
{% block title %}渠道消息{% endblock %}
{% block message_content %}
    <div style="padding:5px 0 10px 5px;border-bottom: 1px solid #ddd;">
        <b>{{ table_name }} 数据表</b></div>
    <table class="table">
        <tr>
            <th>id</th>
            <th>biz_id</th>
            <th>app_code</th>
            <th>pc_code</th>
            <th>channels</th>
            <th>action</th>
            <th>操作</th>
        </tr>
        {% for row in records %}
            <tr>
                <td>{{ row[0] }}</td>
                <td>{{ row[1] }}</td>
                <td>{{ row[2] }}</td>
                <td>{{ row[3] }}</td>
                <td>{{ row[4] }}</td>
                <td>{{ row[5] }}</td>
                <td>
                    <a href="javascript:;" class="btn btn-link btn_api" style="padding:0;vertical-align:middle;"
                       data-id="{{ row[0] }}" data-action="{{ action }}">channel_send</a>
                    | <a href="javascript:;" class="btn btn-link btn_api"
                         style="padding:0;vertical-align:middle;" data-id="{{ row[0] }}" data-action="{{ action }}"
                >channel_update_status</a>
                    | <a href="javascript:;" class="btn btn-link btn_api"
                         style="padding:0;vertical-align:middle;" data-id="{{ row[0] }}" data-action="{{ action }}"
                >channel_delete_by_biz_id</a>
                    {% if row[6]|length >5 %}
                        | <a href="javascript:;" class="btn btn-link btn_api"
                             style="padding:0;vertical-align:middle;" data-id="{{ row[0] }}" data-action="{{ action }}"
                    >channel_delete_by_business_id</a>
                        | <a href="javascript:;" class="btn btn-link btn_api"
                             style="padding:0;vertical-align:middle;" data-id="{{ row[0] }}" data-action="{{ action }}"
                    >channel_batch_delete</a>
                    {% endif %}
                </td>
            </tr>
        {% endfor %}
    </table>
{% endblock %}